<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class UpdateCouponAllot extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('coupons', function (Blueprint $table) {
            $table->string('allot_serial_number', 32)
                    ->after('allot_time');
            $table->integer('allot_developer_id')->default(0)
                    ->after('allot_serial_number');   
            $table->string('allot_order_unicompay', 32)
                    ->after('allot_developer_id');    
            $table->string('allot_ext_info', 256)
                    ->after('allot_order_unicompay');   
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
